package com.xbongbong.admin.model;

import com.xbongbong.admin.domain.entity.WorkOrderTemplateCategoryRetainEntity;

import java.util.List;
import java.util.Map;

/**
 * @author guohui.zhang
 * @Title:
 * @date 2020/3/1718:52
 */
public interface WorkOrderTemplateCategoryRetainModel {
    List<WorkOrderTemplateCategoryRetainEntity> findEntitys(Map<String, Object> param);

    Integer  insertBatch(List<WorkOrderTemplateCategoryRetainEntity> workOrderTemplateCategoryRetainEntities);

    /**
     * 批量删除工单分类
     * @param entities
     * @param corpid
     * @return
     */
    Integer deleteBatch(List<Long> entities,String corpid);

    /**
     * 根据备份应用id查询工单分类
     * @param retainAppId
     * @param corpid
     * @return
     */
    WorkOrderTemplateCategoryRetainEntity getCategoryByRetainAppId(Long retainAppId, String corpid);

}
